package cn.xqapp.EchoServer;

import cn.xqapp.core.BaseServer;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class EchoServer extends BaseServer {
    public EchoServer(int port){
        super(port, ()->new ChannelInitializer<SocketChannel>() {
            @Override
            public void initChannel(SocketChannel ch) {
                ch.pipeline().addLast(new EchoServerHandler());
            }
        });
    }
}
